package com.xdwanj.tools;

import java.io.File;
import java.io.FileFilter;

public class FileFilerImp implements FileFilter {
    String FileSuffix;//事件模型返回的路径字符串

    public FileFilerImp(String fileSuffix) {
        FileSuffix = fileSuffix;
    }

    @Override
    public boolean accept(File pathname) {
        return pathname.getPath().toLowerCase().endsWith(FileSuffix);
    }
}
